package cn.wildfire.chat.app.extendsion.ui;

import android.content.Context;
import android.widget.Toast;

import com.sourcemuch.im.caiba.CaiBaChatApp;

/**
 * Create by HEKE, 2019/9/3 11:34
 * TODO 基本的弹窗提示
 */
public class ToastTip {

    public static void tip(String value) {
        tip(CaiBaChatApp.getContext(), value);
    }

    public static void tip(Context context, String value) {
        CaiBaChatApp.getMainHandler().post(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(context, value, Toast.LENGTH_SHORT).show();
            }
        });
    }

}
